<%@ page language="java" pageEncoding="utf-8"%>
<%@ page isELIgnored="false" %>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>



<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html:html lang="true">
  <head>
    
    <title>getActivityByType.jsp</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  活动浏览页:<br/>
  活动类型：${param.small}<br/>
    <c:forEach items="${requestScope.list}" var="data">
    <div>
    <a href="getActivity.do?activityId=${data.activityId}"><c:out value="${data.title}"></c:out></a>  发布时间：<fmt:formatDate value="${data.postTime}" pattern="yyyy-MM-dd HH:mm"/>  到期时间：<fmt:formatDate value="${data.deadTime}" pattern="yyyy-MM-dd HH:mm"/>
    <a href="user.do?uid=${data.postUid}"><c:out value="${data.nickName}"></c:out></a>  <img src="${data.mediumImageUrl}">
    </div>
    <hr/>
    <c:out value="${data.content}"></c:out>
    <hr/>
    <div>开始时间：<fmt:formatDate value="${data.startTime}" pattern="yyyy-MM-dd HH:mm"/>  结束时间：<fmt:formatDate value="${data.endTime}" pattern="yyyy-MM-dd HH:mm"/>
    联系人方式：<c:out value="${data.contact}"></c:out>
    </div>
    <br/><br/>
    </c:forEach>
  </body>
</html:html>
